package TankGame02;

/*
 *@Student 张策
 */
public class Tank  {
    private int x;
    private int y;
    private int rect;
    private int speed;

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public void moveup(){
        y-=speed;
    }
    public void movedown(){
        y+=speed;
    }
    public void moveright(){
        x+=speed;
    }
    public void movelest(){
        x-=speed;
    }
    public int getRect() {
        return rect;
    }

    public void setRect(int rect) {
        this.rect = rect;
    }

    public Tank(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
